package com.quanyan.ic.datacenter.dao;

import com.quanyan.ic.common.model.OrderMessage;
import com.quanyan.ic.datacenter.model.PlaceUnitInfo;

import java.util.Date;

/**
 * Created by Administrator on 2017/8/21.
 * 订单相关
 */
public interface PlaceOrderDao {

    /**
     * 订单消息入库
     * @param orderMessage
     */
     void insert(OrderMessage orderMessage,PlaceUnitInfo unitInfo);

    /**
     * 查看当前时间 有无订单
     * @param placeUnitId
     * @param date
     * @return
     */
     int isOrderByDateTime (Integer placeUnitId ,Date date);
    }
